package com.hexacta.hrs.services.user.impl;

import org.vectrics.user.User;
import com.hexacta.hrs.repositories.RecordObjectRepository;
import com.hexacta.hrs.services.user.UserService;


public class UserServiceImpl implements UserService {

	    /** Un {@link RecordObjectRepository} de {@link User}. */
	    private RecordObjectRepository<User> userRepository;

	    public void setUserRepository(RecordObjectRepository<User> userRepository) {
	        this.userRepository = userRepository;
	    }

	    @Override
	    public User getUserById(long id) {
	        return userRepository.forId(id);
	    }

		
		public void save(User user) {
			this.userRepository.save(user);
		}
	
}
